

import {lsHttp} from "../utils/lshttp";
// 店铺分类
export const categoryAPI = () => {
    return lsHttp({
        url: '/api/shop/category',
        method: 'POST'
    })
}
// 官返店铺分类
export const categoryGFAPI = () => {
    return lsHttp({
        url: '/api/mtShop/category',
        method: 'POST'
    })
}
// 腾讯搜索地址
export const getQQPoiAPI = (lat, log, keyboard) => {
    return lsHttp({
        url: '/api/map/getQQPoi',
        method: 'POST',
        data: {
            boundary: 'nearby(' + lat + ',' + log + ',100000)',
            page_size: 20,
            page_index: 1,
            keyword: keyboard
        },
    })
}

//获取搜索发现列表数据
export const getKeywordFindListAPI = (data) => {
    return lsHttp({
        url: '/api/shop/getDiscoverKeywords',
        method: 'POST',
        data: data
    })
}

//获取热门推荐套餐列表数据
export const getHotRecommendListAPI = (data) => {
    return lsHttp({
        url: '/api/shop/getNearbyRecommendations',
        method: 'POST',
        data: data
    })
}